

export default [

    // { path: '/site/login', component(resolve) { require(['@/views/site/login/index.vue'], resolve); }, meta: { title: "站点登录", } },
    // { path: '/site/design/*', component(resolve) { require(['@/views/site/design/index.vue'], resolve); }, meta: { title: "站点装修", } },
    // { path: '/site/coupon/*', component(resolve) { require(['@/views/site/coupon/index.vue'], resolve); }, meta: { title: "coupon", } },
    // { path: '/site/manage/*', component(resolve) { require(['@/views/site/manage/index.vue'], resolve); }, meta: { title: "站点管理", } },
    { path: '/site/apps/*', component(resolve) { require(['@/views/apps/index.vue'], resolve); }, meta: { title: "插件管理", layout:"" } },
    { path: '/site/apps', component(resolve) { require(['@/views/apps/index.vue'], resolve); }, meta: { title: "插件管理",layout:"" } },

    { path: '/store/apps/*', component(resolve) { require(['@/views/apps/index.vue'], resolve); }, meta: { title: "插件管理", layout:"" } },
    { path: '/store/apps', component(resolve) { require(['@/views/apps/index.vue'], resolve); }, meta: { title: "插件管理",layout:"" } },
    
    { path: '/site/design/*', component(resolve) { require(['@/views/design/index.vue'], resolve); }, meta: { title: "装修管理",layout:"" } },
    { path: '/store/design/*', component(resolve) { require(['@/views/design/index.vue'], resolve); }, meta: { title: "装修管理",layout:"" } },
   
    { path: '/site/login', component(resolve) { require(['@/views/site/login/index.vue'], resolve); }, meta: { title: "平台登录", layout:""} },
    { path: '/site/*', component(resolve) { require(['@/views/site/home/index.vue'], resolve); }, meta: { title: "平台管理", layout:""} },
    { path: '/site', redirect: '/site/home' },

    { path: '/store/login', component(resolve) { require(['@/views/store/login/index.vue'], resolve); }, meta: { title: "门店登录", layout:""} },
    { path: '/store/*', component(resolve) { require(['@/views/store/home/index.vue'], resolve); }, meta: { title: "门店管理", layout:""} },
    { path: '/store', redirect: '/store/home' },

    { path: '/admin/login', component(resolve) { require(['@/views/admin/login/index.vue'], resolve); }, meta: { title: "平台登录", layout:""} },
    { path: '/admin/*', component(resolve) { require(['@/views/admin/home/index.vue'], resolve); }, meta: { title: "平台管理", layout:""} },
    { path: '/admin', redirect: '/admin/home' },
    {
        path: '',
        redirect: '/site/home'
    },
    {
        path: '/',
        redirect: '/site/home'
    },
    {
        path: '*',
        name: '*',
        component(resolve) {
            require(['@/views/404/index.vue'], resolve);
        },
        meta: {
            title: "404",
            isOpen: true,
        },
    }
]
